how to connect sql server over ssh tunnel on jumpserver

  1. using ssh port forward

    ssh -f -N -L 5432:remoteIp:5432 remoteUser@remoteIp
    
  2. clear jumpserver command history

    select * from terminal_command limit 10;
    delete from terminal_command where user="chenshi (chenshi.de)";